package io.lvdaxian.mybatis05.session.defaults;


import io.lvdaxian.mybatis05.session.Configuration;
import io.lvdaxian.mybatis05.session.SqlSession;
import io.lvdaxian.mybatis05.session.SqlSessionFactory;

public class DefaultSqlSessionFactory implements SqlSessionFactory {
  
  private final Configuration configuration;
  
  public DefaultSqlSessionFactory(Configuration configuration) {
    this.configuration = configuration;
  }
  
  @Override
  public SqlSession openSession() {
    return new DefaultSqlSession(configuration);
  }
}
